package com.cmc.cloud.cmclink.doc.vo.sovo.sovo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 订舱 内容审核再申请 Request VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - 内容 Request VO")
@Data
@EqualsAndHashCode()
@ToString(callSuper = true)
public class SoBsaCountReqVO {
    @Schema(description = "订舱船名 line 第一段", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{so.bookingvessel.notblank}")
    @Length(max = 50, message = "{so.bookingvessel.length}")
    private String bookingVessel;

    @Schema(description = "订舱航次 line 第一段", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{so.bookingvoyage.notblank}")
    @Length(max = 50, message = "{so.bookingvoyage.length}")
    private String bookingVoyage;

    @Schema(description = "装货港", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{so.polcode.notblank}")
    @Length(max = 5, message = "{so.polcode.length}")
    private String polCode;
}
